/**
   EMMA = Estación Metereológica de Muestreo Automática
 
 emma_project
 Copyright (C) 2015  Rodrigo Garcia

 This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef PROGMEMSTRINGS_H

#define PROGMEMSTRINGS_H

#include <avr/pgmspace.h>

/// Sensor names

const char STR_lm35[] PROGMEM = "LM35"; //temperature
const char STR_dht11[] PROGMEM = "DHT11"; //temperature, relative humidity
const char STR_ds18s20[] PROGMEM = "DS18S20"; //temperature
const char STR_hs1101[] PROGMEM = "HS1101"; //relative humidity
const char STR_sht1115[] PROGMEM = "SHT1115"; //relative humidity

// NOTE: Sensors names are ordered accroding to `sensors_flags.h`

PGM_P const STR_SensorsNamesTemperature1[] PROGMEM ={
  // Temperature
  STR_lm35, //0 
  STR_dht11, //1
  STR_ds18s20, //2
};

PGM_P const STR_SensorsNamesRelativeHumidity[] PROGMEM ={
  STR_hs1101, // 0
  STR_dht11, // 1
  STR_sht1115 // 2
};

// More sensors
//..

/// physical phenomenon

// Language definitios uncomment the language needed and comment
// all others
//#define LANGUAGE_ENGLISH
#define LANGUAGE_CASTELLANO

// -- english --
#ifdef LANGUAGE_ENGLISH
const char STR_EN_Time[] PROGMEM = "Time";
const char STR_EN_Temperature[] PROGMEM = "Temperature";
const char STR_EN_RelativeHumidity[] PROGMEM = "Relative humidity";
const char STR_EN_SoilMoisture[] PROGMEM=   "Soil moisture";
const char STR_EN_MagneticField[] PROGMEM = "Magnetic Field";
const char STR_EN_gas[] PROGMEM = "gas"; // FIXME: which one?
const char STR_EN_Pluviometer[] PROGMEM = "Pluviometer";
const char STR_EN_WindSpeed[] PROGMEM = "Wind speed";
const char STR_EN_LightIntensity[] PROGMEM = "Light intensity";

PGM_P const STR_Physical_Phenomenon[] PROGMEM = { // english
  STR_EN_Time,
  STR_EN_Temperature,
  STR_EN_RelativeHumidity,
  STR_EN_SoilMoisture,
  STR_EN_MagneticField,
  STR_EN_gas,
  STR_EN_Pluviometer,
  STR_EN_WindSpeed,
  STR_EN_LightIntensity
};

const char STR_Interface_AddRemove[] PROGMEM = "Add/Remove Sensors";
const char STR_Interface_Clock[] PROGMEM = "Clock";
const char STR_Interface_SamplingInterval[] PROGMEM = "Sampling interval";
const char STR_Interface_Hour[] PROGMEM = "hour";
const char STR_Interface_Date[] PROGMEM = "date";
const char STR_Interface_Setto[] PROGMEM = "set to:";

PGM_P const STR_User_Serial_Interface[] PROGMEM = {
  STR_Interface_AddRemove,
  STR_Interface_Clock,
  STR_Interface_SamplingInterval,
  STR_Interface_Hour,
  STR_Interface_Date,
  STR_Interface_Setto
};

#endif
// -- castellano --
#ifdef LANGUAGE_CASTELLANO

const char STR_ES_Time[] PROGMEM = "Tiempo";
const char STR_ES_Temperatura[] PROGMEM = "Temperatura";
const char STR_ES_HumedadRelativa[] PROGMEM = "Humedad relativa";
const char STR_ES_HumedadDeSuelo[] PROGMEM = "Humedad de suelo";
const char STR_ES_CampoMagnetico[] PROGMEM = "Campo magnetico";
const char STR_ES_gas[] PROGMEM = "Gas";
const char STR_ES_Pluviometro[] PROGMEM = "lluvia";
const char STR_ES_VelocidadDelViento[] PROGMEM = "Velocidad del viento";
const char STR_ES_IntensidadLuminosa[] PROGMEM = "Intensidad luminosa";


PGM_P const STR_Physical_Phenomenon[] PROGMEM = { // castellano
  STR_ES_Time,
  STR_ES_Temperatura,
  STR_ES_HumedadRelativa,
  STR_ES_HumedadDeSuelo,
  STR_ES_CampoMagnetico,
  STR_ES_gas,
  STR_ES_Pluviometro,
  STR_ES_VelocidadDelViento,
  STR_ES_IntensidadLuminosa
};

const char STR_Interface_AgregarQuitar[] PROGMEM = "Agregar/Quitar sensores";
const char STR_Interface_Reloj[] PROGMEM = "Reloj";
const char STR_Interface_IntervaloMuestreo[] PROGMEM = "Intervalo de muestreo";
const char STR_Interface_Hora[] PROGMEM = "hora";
const char STR_Interface_Fecha[] PROGMEM = "fecha";
const char STR_Interface_Ajustadoa[] PROGMEM = "ajustado a:";

PGM_P const STR_User_Serial_Interface[] PROGMEM = {
  STR_Interface_AgregarQuitar,
  STR_Interface_Reloj,
  STR_Interface_IntervaloMuestreo,
  STR_Interface_Hora,
  STR_Interface_Fecha,
  STR_Interface_Ajustadoa
};

#endif


#endif //ProgMemStrings.h
